﻿using Common;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Util;

namespace Linguist.LexTree
{
    /// <summary>
    /// A class that represents the initial word in the search space. It is treated specially because we need to keep track
    /// of the context as well. The context is embodied in the parent node
    /// </summary>
    public class InitialWordNode: WordNode
    {
        /// <summary>
        /// the parent node
        /// </summary>
        HMMNode parent = null;

        public HMMNode Parent
        {
            get { return parent; }
        }

        /// <summary>
        /// Creates an InitialWordNode
        /// </summary>
        /// <param name="pronunciation">the pronunciation</param>
        /// <param name="parent">the parent node</param>
        public InitialWordNode(IPronunciation pronunciation, HMMNode parent)
            : base(pronunciation, LogMath.LOG_ONE)
        {
            this.parent = parent;
        }
    }
}
